<?php
	session_start();
	require_once('LeaveFormView.php');	
	require_once('LeaveManager.php');	
	if(isset($_SESSION['login']) && $_SESSION['login']==true){
		LeaveFormView :: requestLeaveList($_SESSION['employeeNumber']);
		
		$ctr = 0;
		$r1 = LeaveManager :: getLeaveData($_SESSION['employeeNumber'], "load");
		
		while ($data = mysql_fetch_assoc($r1)) {
			$ctr++;
		}
		/*
		if ($ctr > 0) {
			LeaveFormView :: getEmployeeData($_SESSION['employeeNumber']);
		}
		*/
	}else
		header("Location: Menu.php");
?>